<?php

require_once('classes/RequestInterpreter.class.php');

class RequestInterpreterFactory{

    public static function getInterpreterFromPhp($phpFileLocation){
        $interpreter = new RequestInterpreter();
        $interpreter->addConfigFromPhp($phpFileLocation);
        return $interpreter;
    }

    public static function getInterpreterFromXml($xmlFileLocation){
        $interpreter = new RequestInterpreter();
        $interpreter->addConfigFromXml($xmlFileLocation);
        return $interpreter;
    }

}

?>